package com.cyclinggle.cloud;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.cyclinggle.cloud.service.UserService;

@RestController
public class TestController {
	
	@Autowired
	private UserService userService;
	
	@GetMapping("/users")
	public String getUser(@RequestParam String username) throws Exception {
		return userService.getUser(username);
	}
	
}
